package cn.airfei.netty.nettyexample.rpc.provider;

import cn.airfei.netty.nettyexample.rpc.common.HelloService;

/**
 * @description:
 * @author: air
 * @create: 2021-01-22 15:24
 */
public class HelloServiceImpl implements HelloService {


    /**
     * 当有消费端调用时就返回结果
     * @param msg
     * @return
     */
    @Override
    public String hello(String msg) {
        System.out.println("收到客户端消息:"+msg);
        return "收到客户端消息:"+msg;
    }
}
